import { createParamDecorator, ExecutionContext } from '@nestjs/common';

export interface UserEntity extends Record<string, any> {}

export const User = createParamDecorator((type = 'web', ctx: ExecutionContext) => {
  const request = ctx.switchToHttp().getRequest();
  return request.route;
});
